#include "widget.h"
#include "ui_widget.h"

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
    ui->label->setTextFormat(Qt::PlainText);
    ui->label->setText("<h1>你干嘛~</h1>");

    ui->label_2->setTextFormat(Qt::RichText);
    ui->label_2->setText("<h1>哎呦~</h1>");

    ui->label_3->setTextFormat(Qt::MarkdownText);
    ui->label_3->setText("<h1>唱、跳、rap、篮球、鸡</h1>");
}

Widget::~Widget()
{
    delete ui;
}

